<br>
<table width="100%">
<tbody>
<tr>
	<td colspan="2"><h1 style="color:#114070"><?=$this->configuration['name']?></h1><hr></td>
</tr>
<tr>
<td width="50%" valign="top">
<?php if($this->projectData) {?>
	<?php foreach ($this->projectData as $projectData) {?>
	<table width="95%" cellpadding="0" cellspacing="1" bgcolor="#BBBBBB">
		<tr>
			<td bgcolor="#F0F0F0">Project:<b><?=$projectData['pname']?></b></td>
		</tr>
		<tr>
			<td bgcolor="#FFFFFF"><b>Project Lead:</b> <?=$projectData['lead']?></td>
		</tr>
		<tr>
			<td bgcolor="#FFFFFF"><b>Reports:</b> <a href="<?=$this->baseUrl()?>/issue/openissues/pid/<?=$projectData['id']?>">Open Issues</a> | <a href="<?=$this->baseUrl()?>/issue/roadmap/project/<?=$projectData['id']?>">Roadmap</a> | <a href="<?=$this->baseUrl()?>/issue/versions/projectId/<?=$projectData['id']?>">Versions</a> | <a href="<?=$this->baseUrl()?>/issue/components/project/<?=$projectData['id']?>">Components</a></td>
		</tr>
		<tr>
			<td bgcolor="#FFFFFF">
				<table width="100%" cellpadding="1" cellspacing="1">
					<tr>
						<td colspan="2"><b>Filter Issues:</b></td>
					</tr>
					<tr>
						<td width="50%" align="left"><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$projectData['id']?>">All</a></td>
						<td><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$projectData['id']?>/resolved/-1w">Resolved Recently</a></td>
					</tr>
					<tr>
						<td width="50%" align="left">Outstanding</td>
						<td><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$projectData['id']?>/created/-1w">Added Recently</a></td>
					</tr>
					<tr>
						<td width="50%" align="left"><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$projectData['id']?>/fixfor/-1">Unscheduled</a></td>
						<td><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$projectData['id']?>/updated/-1w">Updated Recently</a></td>
					</tr>
					<tr>
						<td width="50%" align="left"><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$projectData['id']?>/assigneeSelect/issue_current_user">Assign to me</a></td>
						<td>Most Important</td>
					</tr>
					<tr>
						<td width="50%" align="left"><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$projectData['id']?>/reporterSelect/issue_current_user">Reported by me</a></td>
						<td>&nbsp;</td>
					</tr>
			  </table>
			</td>
		</tr>
	</table>
	<br/>
	<?php }?>
<?php } else {?>
<table width="90%" style="border:1px solid #bbbbbb">
	<tbody>
		<tr>
			<td bgcolor = "#fffff0">
				<?php echo $this->configuration['description']?>
			</td>
		</tr>
	</tbody>
</table>
<?php }?>
</td>
<td valign="top">
	<table width="100%" cellpadding="0" cellspacing="1"  bgcolor="#f0f0f0" style="border:1px solid #bbbbbb">
		<tr bgcolor="#f0f0f0">
			<td bgcolor="#f0f0f0" style="border-bottom:0px">Filters</td>
		</tr>
			<?php if ($this->userIssues) { ?>
			<tr>
				<td>
					<table width="100%" cellpadding="1" cellspacing="1" id="issuetable">
						<tbody>
							<?php $i = 1; 
							foreach ($this->filterData as $fData) { ?>
							<tr <?php if($i % 2) { echo "class='rowNormal'"; } else { echo "class='rowAlternate'";}?>>
								<td width="15%"><a href="<?=$this->baseUrl()?>/filter/view/id/<?=$fData['id']?>">&nbsp;<?=$fData['filtername']?></a></td>
								<td><?=$fData['description']?></a></td>
								<td width="15%"><?=$fData['c']?></td>
							</tr>
							<?php 
								$i++; 
								} ?>
						</tbody>
				  </table>
				</td>
		  </tr>
			<?php } else { ?>
			<tr>
				<td bgcolor="#ffffff">
					You have no filter at the moment. 
				</td>
			</tr>
			<?php } ?>
	</table>
	<br>
	<table width="100%" cellpadding="0" cellspacing="1"  bgcolor="#f0f0f0" style="border:1px solid #bbbbbb">
		<tr bgcolor="#f0f0f0">
			<td bgcolor="#f0f0f0" style="border-bottom:0px">
					Open Issues:<b style="margin:3px 0 0 5px;height:20px;">Assign to me</b>&nbsp;
					<font size="1">(Displaying <?=$this->displayIssues?> of <?=$this->totalUserIssues?>)</font>			</td>
		</tr>
			<?php if ($this->userIssues) { ?>
			<tr>
				<td>
					<table width="100%" cellpadding="1" cellspacing="1" id="issuetable">
						<tbody>
							<?php $i = 1; 
							foreach ($this->userIssues as $issue) { ?>
							<tr <?php if($i % 2) { echo "class='rowNormal'"; } else { echo "class='rowAlternate'";}?>>
								<td width="1%"><img src="<?=$this->baseUrl().$issue['issueTypeIcon']?>" title="<?=$issue['issueTypeName']?>-<?=$issue['issueTypeDesc']?>"/></td>
								<td width="2%" class="pkey">&nbsp;<?=$issue['pkey']?></td>
								<td class="summary"><a href="<?=$this->baseUrl()?>/issue/view/id/<?=$issue['id']?>"><?=$issue['summary']?></a></td>
								<td width="1%"><img src="<?=$this->baseUrl().$issue['priorityIcon']?>" title="<?=$issue['priorityName']?>-<?=$issue['priorityDesc']?>"/></td>
							</tr>
							<?php 
								$i++; 
								} ?>
						</tbody>
				  </table>
				</td>
		  </tr>
			<?php } else { ?>
			<tr>
				<td bgcolor="#ffffff">
					You have no assigned issues at the moment. 
				</td>
			</tr>
			<?php } ?>
	</table>
	<br>
	<table width="100%"  bgcolor="#f0f0f0" cellspacing="1" style="border:1px solid #bbbbbb" cellpadding="0">
		<tr bgcolor="#f0f0f0">
			<td style="border-bottom:0px">
					Open Issues:<b style="margin:3px 0 0 5px;height:20px;">In Progress</b>&nbsp;
					<font size="1">(Displaying <?=$this->displayProgressIssues?> of <?=$this->totalInprogressIssues?>)</font>
			</td>
		</tr>
		<?php if ($this->issuesInProgress) { ?>
				<tr>
				<td>
					<table width="100%" cellpadding="1" cellspacing="1" id="issuetable">
						<tbody>
							<?php 
							$j = 1;
							foreach ($this->issuesInProgress as $issue) { ?>
							<tr <?php if($i % 2) { echo "class='rowNormal'"; } else { echo "class='rowAlternate'";}?>>
								<td width="1%"><img src="<?=$this->baseUrl().$issue['issueTypeIcon']?>" title="<?=$issue['issueTypeName']?>-<?=$issue['issueTypeDesc']?>"/></td>
								<td width="1%" class="pkey">&nbsp;<?=$issue['pkey']?></td>
								<td class="summary"><a href="<?=$this->baseUrl()?>/issue/view/id/<?=$issue['id']?>"><?=$issue['summary']?></a></td>
								<td width="1%"><img src="<?=$this->baseUrl().$issue['priorityIcon']?>" title="<?=$issue['priorityName']?>-<?=$issue['priorityDesc']?>"/></td>
							</tr>
							<?php
								$j++; 
								} ?>
						</tbody>
				  </table>
				</td>
				</tr>
			<?php } else { ?>
			<tr>
				<td bgcolor="#ffffff">You have no issues in progress at the moment.</td>
			</tr>
			<?php } ?>
	</table>
	<br>
	<table width="100%" cellpadding="1" cellspacing="1" bgcolor="#BBBBBB">
		<tr bgcolor="#f0f0f0">
			<td style="border-bottom:0px" colspan="2">
					Tasks:<b style="margin:3px 0 0 5px;height:20px;">Administration</b>&nbsp;
			</td>
		</tr>
		<tr>
			<td bgcolor="#FFFFFF"><b>Projects</b></td>
			<td bgcolor="#FFFFFF">
				&nbsp;<a href="<?=$this->url(array('controller'=>'project'))?>">View all</a>&nbsp;or&nbsp; <a href="<?=$this->url(array('controller'=>'project','action'=>'add'))?>">Create new</a>			</td>
		</tr>
		<tr>
			<td bgcolor="#FFFFFF"><b>Users</b></td>
			<td bgcolor="#FFFFFF">
				Browser&nbsp;<a href="#">users</a>,&nbsp; <a href="#">groups</a>&nbsp;or&nbsp; <a href="#">create a new user</a>			</td>
		</tr>
		<tr>
			<td bgcolor="#FFFFFF"><b>Configuration</b></td>
			<td bgcolor="#FFFFFF">
				Update &nbsp;<a href="<?=$this->baseUrl()?>/configuration">configuration</a>			</td>
		</tr>
		<tr>
			<td bgcolor="#FFFFFF"><b>Database</b></td>
			<td bgcolor="#FFFFFF">
				You are currently using mysql. you can use any database you like.			</td>
		</tr>
	</table>
</td>
</tr>
</tbody>
</table>